# Module build makefile
CUR_ROOT    := $(shell pwd)
REF_ROOT    ?= $(CUR_ROOT)/../../
SDK_ROOT    ?= $(REF_ROOT)/../

include $(SDK_ROOT)/build/base.mak

SUBDIRS :=
ifeq ($(CONFIG_ADAS_SUPPORT), y)
SUBDIRS += adas
endif

.PHONY: all $(SUBDIRS) clean
all:$(SUBDIRS)

$(SUBDIRS):
	@make -C $@||exit $?

clean:
	@for MOD in $(SUBDIRS);do\
		make clean -C $$MOD||exit $?;done